﻿<h3><%= t :dknguoidungmoi %></h3>

<div class="exer1_form">
<%= form_for(@user) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

 
  <table width="629" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="153" scope="col"><label for="Email" >Email:</label></td>
        <th width="463" align="left" scope="col"><%= f.text_field :email %></th>
      </tr>
      <tr>
        <td align="left"><label for="password" ><%= t :matkhau%>: </label></td>
        <td align="left"><%= f.password_field :password, :size => 30 %></td>
      </tr>
      <tr>
        <td><%= f.label :password_confirmation, "#{t :xacnhanmatkhau}" %> </td>
        <td align="left"><%= f.password_field :password_confirmation, :size => 30 %></td>
      </tr>
      <tr>
        <td> <label for="firstName" ><%= t :ho %>:</label></td>
        <td align="left"><%= f.text_field :firstName %></td>
      </tr>
      <tr>
        <td><label for="lastName" ><%= t :ten %>:</label></td>
        <td align="left"><%= f.text_field :lastName %></td>
      </tr>
      <tr>
        <td><label for="sdt" ><%= t :sdt %>:</label></td>
        <td align="left"> <%= f.text_field :phone %></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>
          <div class="actions">
          <%= f.submit "#{t :dangky}"%>
          </div>
        </td>
      </tr>
  </table>

<% end %>
</div>

<p><%= link_to "#{t :quaylai}", users_path %></p>
